﻿namespace WMS.FC.Domain.DomainObject.System
{
    [AttributeUsage(AttributeTargets.Property)]
    public class SplitTableColumnAttribute : Attribute
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string ColumnName { get; set; } = string.Empty;

        /// <summary>
        /// 类型
        /// </summary>
        public string ColumnDataType { get; set; } = string.Empty;

        /// <summary>
        /// 是否可为空
        /// </summary>
        public bool IsNullable { get; set; } = false;

        /// <summary>
        /// 默认值
        /// </summary>
        public string DefaultValue { get; set; } = string.Empty;

        /// <summary>
        /// 描述
        /// </summary>
        public string ColumnDescription { get; set; } = string.Empty;

        /// <summary>
        /// 是否为主键
        /// </summary>
        public bool IsPrimaryKey { get; set; } = false;

    }
}
